DynamicPropertyType is a handle to an existing property type. More...
#include <kanzi/core/property/dynamic_property_type.hpp>
Static Public Member Functions | |
static OptionalDynamicPropertyType< Type > | tryCreate (string_view name) |
Creates an OptionalDynamicPropertyType that holds a DynamicPropertyType instance with the given name. | |
Friends | |
void | swap (DynamicPropertyType< Type > &lhs, DynamicPropertyType< Type > &rhs) noexcept |
Additional Inherited Members | |
![]() | |
using | DataType |
using | Descriptor |
using | Traits |
![]() | |
PropertyType () | |
Constructor. | |
DynamicPropertyType is a handle to an existing property type.
You can use it to set or get from a node a property type value with a specific data type.
You can use a DynamicPropertyType to access property types when you have their data type and fully qualified name. When you do not have a fully qualified name or data type of a property type, or they are irrelevant, to access property types, use the AbstractPropertyType type.
To learn how to create a Kanzi property type, see PropertyType.
To create a property type with a fully qualified name for an existing property type:
|
inlineexplicit |
Constructor.
Creates a DynamicPropertyType instance referring to an existing property type with the given name.
name | Fully qualified name of an existing property type in the Kanzi property system. |
logic_error | if there is no property type with the given name in the Kanzi property system or the data type does not match the existing property type with the given name. |
|
inlineexplicit |
Constructor.
Creates a DynamicPropertyType instance that refers to the same existing property type as the given AbstractPropertyType instance does.
abstractPropertyType | AbstractPropertyType instance that refers to the existing property type in the Kanzi property system. |
invalid_argument | if abstractPropertyType is not valid. |
logic_error | if the data type does not match the existing property type to which the given abstractPropertyType refers. |
|
inlineexplicit |
Constructor.
Creates a DynamicPropertyType instance that refers to the given AbstractPropertyTypeDescriptor.
abstractDescriptor | AbstractPropertyTypeDescriptor instance of an existing property type in the Kanzi property system. |
logic_error | if the data type does not match the existing property type. |
|
inlinenoexcept |
Constructor.
|
inline |
Destructor.
|
inlinestatic |
Creates an OptionalDynamicPropertyType that holds a DynamicPropertyType instance with the given name.
name | Fully qualified name of an existing property type in the Kanzi property system. |
|
inlinenoexcept |
|
inlinenoexcept |
|
friend |